package com.mtw.bbs.article.pojo.vo;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.mtw.bbs.common.core.vo.BaseFileVo;
import com.mtw.bbs.userAdmin.pojo.vo.UserInfoVo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * 文章Vo
 *
 */
@Data
public class ArticleVo {



	@ApiModelProperty(value = "主键id")
	private String id;


	@ApiModelProperty(value = "内容")
	private String content;


	@ApiModelProperty(value = "是否原创")
	private Integer original;


	@ApiModelProperty(value = "外链")
	private String outsideLink;


	@ApiModelProperty(value = "审核状态")
	private Integer approveStatus;


	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "创建日期")
	private Date createdDate;


	@ApiModelProperty(value = "创建人信息")
	private UserInfoVo poster;


	@ApiModelProperty(value = "分享数")
	private Integer shareCount;


	@ApiModelProperty(value = "评论数")
	private Integer replyCount;


	@ApiModelProperty(value = "点赞数")
	private Integer likeCount;


	@ApiModelProperty(value = "是否已点赞，1为已点赞，2为已踩")
	private Integer likeOrDis;


	@ApiModelProperty(value = "附件列表")
	private List<BaseFileVo> fileList;


	@ApiModelProperty(value = "话题信息")
	private TopicVo topicInfo;

}
